package com.wanczy.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanczy.mapper.UserOneMapper;
import com.wanczy.pojo.User;
import com.wanczy.service.UserOneService;

@Service
public class UserOneServiceImpl implements UserOneService {
	@Autowired
	private UserOneMapper userOneMapper;
	@Override
	public User getUsers(Integer userId) {
		User user = userOneMapper.getUsers(userId);
		return user;
	}
	@Override
	public User findByUserPassAndName(String userName, String userPass) {
		User user = userOneMapper.findByUserPassAndName(userName, userPass);
		return user;
	}
	@Override
	public int getUpdUsers(User user) {
		int updUser = userOneMapper.getUpdUsers(user);
		return updUser;
	}

}
